package Data;
//�Խ��� ��� �Է�
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import LogThread.WriteLog;

public class StartServer implements Controller {
	
	@Override
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse arg1) throws Exception {
		
		WriteLog log = new WriteLog();
		
		String msg_buf = "Server Start";
		String ip = request.getRemoteAddr();
		
		log.make_log(msg_buf, ip);
		
		System.out.println(Memory.mmr_log);
		TimeShcedule.shceduleRun();
		
		ModelAndView mav = new ModelAndView();
		mav.setViewName("main");
		
		return mav;
	}
	
}
